module.exports = {
  devServer: {
    open: true,  //自动打开
    proxy: {
      "/api": {
        ws: false,
        target: "",  //地址
        changeOrigin: true,
        withCredentials: true,
        pathRewrite: {
          "^/api": "",
        },
      }
    }
  },
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/'
};
